-- GENERATED SPELL FOR [Syth Fire Elemental] --


function spell0_19203(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(33526,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19203', 22200, 1)
end

function spell1_19203(pUnit, Event) --@Flame Buffet,n/a--
pUnit:FullCastSpellOnTarget(38141,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19203', 22200, 1)
end

function Sorts_19203(pUnit, Event)
local choix_sorts_19203 = math.random(0, 1)
if choix_sorts_19203 == 0 then
pUnit:RegisterEvent('spell0_19203', 1, 1)
end
if choix_sorts_19203 == 1 then
pUnit:RegisterEvent('spell1_19203', 1, 1)
end
end

function mob19203_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19203', math.random(1500, 3000), 1)
end

function mob19203_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19203_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19203_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19203, 1, 'mob19203_Action')
RegisterUnitEvent(19203, 2, 'mob19203_Leave')
RegisterUnitEvent(19203, 3, 'mob19203_Kill')
RegisterUnitEvent(19203, 4, 'mob19203_Die')
